<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'firm-tmpls-form',
	'enableAjaxValidation' => false,
));
?>

	<p class="note">
		<?php echo AdminModule::t('Поля помеченные '); ?> <span class="required">*</span> <?php echo AdminModule::t('являются обязательными'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'hidden'); ?>
		<?php echo $form->checkBox($model, 'hidden'); ?>
		<?php echo $form->error($model,'hidden'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model, 'title', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'title'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model, 'description',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'rating_score'); ?>
		<?php echo $form->textField($model, 'rating_score', array('maxlength' => 4)); ?>
		<?php echo $form->error($model,'rating_score'); ?>
		</div><!-- row -->		
		<div class="row">
		<?php echo $form->labelEx($model,'logo_flag'); ?>
		<?php echo $form->checkBox($model, 'logo_flag'); ?>
		<?php echo $form->error($model,'logo_flag'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'video_count'); ?>
		<?php echo $form->textField($model, 'video_count'); ?>
		<?php echo $form->error($model,'video_count'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'img_count'); ?>
		<?php echo $form->textField($model, 'img_count'); ?>
		<?php echo $form->error($model,'img_count'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'map_flag'); ?>
		<?php echo $form->checkBox($model, 'map_flag'); ?>
		<?php echo $form->error($model,'map_flag'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'has_detail_page'); ?>
		<?php echo $form->checkBox($model, 'has_detail_page'); ?>
		<?php echo $form->error($model,'has_detail_page'); ?>
		</div><!-- row -->		
		<div class="row">
		<?php echo $form->labelEx($model,'trial_time'); ?>
		<?php echo $form->dropDownList($model, 'trial_time', $this->getListTrialTime()); ?>
		<?php echo $form->error($model,'trial_time'); ?>
		</div><!-- row -->		
		<div class="row">
		<?php echo $form->labelEx($model,'life_time'); ?>
		<?php echo $form->dropDownList($model, 'life_time', $this->getListLifeTime()); ?>
		<?php echo $form->error($model,'life_time'); ?>
		</div><!-- row -->			
<?php
echo GxHtml::submitButton(AdminModule::t('Сохранить'));
$this->endWidget();
?>
</div><!-- form -->